﻿@model HotelManageSystem.Models.ClientInfoModel
@{
    ViewBag.Title = "DetailsInfo";
    Layout = "~/Views/Shared/_Template3.cshtml";
}
<script type="text/javascript">
    $(document).ready(function () {

        $("#CheckIn").click(function () {
            if (confirm("确定要入住吗？")) {
                $.post("/Client/CheckIn", null, function () {
                });
                window.location.href = "/ClientConsumption/SelectProduct";
            }
        });
        $("#Book").click(function () {
            if (confirm("确定是预定客房吗？")) {
                $.post("/Client/Book", null, function () {
                });
                window.location.href = "/ClientConsumption/SelectProduct";
            }
        });
        $("#AddPreson").click(function () {
            window.location.href = "/Client/FillUpAForm/?roomId=" + $("#roomid").val();
        });
    });
    $(function () {
        if ($("#number").val() == '1') {
            if ($("#roomTypeid").val() == '2' || $("#roomTypeid").val() == '4' || $("#roomTypeid").val() == '6') {
                $("#selectOperation").css("display", "none");
            }
            else {
                $("#again").css("display", "none");
            }
        } else {
            $("#again").css("display", "none");
        }
    });
</script>
<div style="height: 40px">
</div>
<fieldset>
    <legend>请仔细审核填写信息</legend>
    <div style="width: 6%; float: left; height: 20px" align="left">
    </div>
    <div style="width: 40%; float: left; font-size: 15px" align="left">
        <div style="height: 40px">
        </div>
        <br />
        <div>
            客户编号:@Html.Label("clientid", Session["clientId"].ToString())
        </div>
        <br />
        <div>
            房间编号:@Session["roomId"].ToString()
        </div>
        <input hidden="true" id="roomid" value=@Session["roomId"].ToString() />
        <input hidden="true" id="roomTypeid" value=@Session["roomTypeId"].ToString() />
        <input hidden="true" id="number" value=@Session["number"].ToString() />
        <br />
        <div>
            客户姓名：@Model.Name</div>
        <br />
        <div>
            &nbsp;性 别 ：@Model.Sex</div>
        <br />
        <div>
            客户类型：@Model.ClientTypeName</div>
        <br />
        <div>
            证件名称：@Model.CertificateTypeName</div>
        <br />
        <div>
            证件编号：@Model.CertID</div>
        <br />
        <div>
            家庭住址：@Model.Address
        </div>
        <br />
    </div>
    <div style="width: 6%; float: left;width: 100px" align="left">
        @*<hr color="#cccccc " size="360 " style="width: 0.1px" />*@
    </div>
    <div style="width: 40%; float: left; font-size: 15px" align="left">
        <div style="height: 40px">
        </div>
        <br />
        <div>
            现居住地：@Model.PresentAddress</div>
        <br />
        <div>
            押金：@Model.AdvancePayment</div>
        <br />
        <div>
            联系方式：@Model.Telphone</div>
        <br />
        <div>
            当前职业：@Model.Vocation</div>
        <br />
        <div>
            公司名称：@Model.CompanyName</div>
        <br />
        <div>
            出生日期：@String.Format("{0:g}", Model.Birthday)</div>
        <br />
        <div>
            是否冻结：@Model.IsFreeze</div>
        <br />
        <div>
            客户备注：@Model.Memo</div>
        <br />
        <br />
    </div>
</fieldset>
<br />
<br />
<div id="again">
    <input id="AddPreson" type="submit" value=" 继续填写用户信息 " />
</div>
<div id="selectOperation">
    <p>
        <div style="width: 38%; float: left; font-size: 15px; height: 20px" align="left">
        </div>
        <input id="CheckIn" type="submit" value="客户入住" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <input id="Book" type="submit" value="客户预定" />
    </p>
</div>
